import request from '@/utils/request'

// 查询下载中心列表
export function listDownloadCenter(query) {
  return request({
    url: '/tool/downloadCenter/list',
    method: 'get',
    params: query
  })
}

// 查询下载中心详细
export function getDownloadCenter(id) {
  return request({
    url: '/tool/downloadCenter/' + id,
    method: 'get'
  })
}

// 新增下载中心
export function addDownloadCenter(data) {
  return request({
    url: '/tool/downloadCenter',
    method: 'post',
    data: data
  })
}

// 修改下载中心
export function updateDownloadCenter(data) {
  return request({
    url: '/tool/downloadCenter',
    method: 'put',
    data: data
  })
}

// 删除下载中心
export function delDownloadCenter(id) {
  return request({
    url: '/tool/downloadCenter/' + id,
    method: 'delete'
  })
}
